/*
 * @Description: 
 * @Author: kanjie
 * @Date: 2021-07-06 19:14:53
 * @LastEditors: kanjie
 * @LastEditTime: 2021-07-06 19:22:59
 */
// import request from '@/utils/request'
import { get,post,postJSON } from '@/utils/request'

export function login(data){
  // return request({
  //   url: '/user/login',
  //   method: 'post',
  //   data
  // });
  return postJSON("/user/login",data)
}

export function getInfo(token) {
  // return request({
  //   url: '/user/info',
  //   method: 'get',
  //   params: { token }
  // })
  return get("/user/info",{token})
}

export function logout() {
  // return request({
  //   url: '/user/logout',
  //   method: 'post'
  // })
  return post('/user/logout')
}
